package com.wmx.datastructuresandalgorithms.recursion;

/**********************************
 * @author wmx
 * @date 2019/9/5 9:06
 * @description:
 * @version 1.0
 ************************************/
public class RecursionDemo {

    public static void main(String[] args) {
         doSomething(4);
    }

    public static void  doSomething(int arr){
        if(arr > 2){
          doSomething(arr-1);
        }/*else {*/
            System.out.println("arr ="+ arr);
        /*}*/

    }
}
